html {
	background: #eeeeee;
}

html,
body {
	height: 100%;
	margin: 0;
	padding: 0;
	font-family: 'Roboto', sans-serif;
	overflow: hidden;
}

#main {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
	width: 100%;
	height: 100%;
	position: absolute;
	box-sizing: border-box;
	contain: layout;
	will-change: transform;
}

.chat-item {
	display: flex;
	padding: 10px 0;
	width: 100%;
	contain: layout;
	will-change: transform;
}

.avatar {
	border-radius: 500px;
	margin-left: 20px;
	margin-right: 6px;
	min-width: 48px;
}

.chat-item p {
	margin: 0;
	word-wrap: break-word;
	font-size: 13px;
}

.chat-item.tombstone p {
	width: 100%;
	height: 0.5em;
	background-color: #ccc;
	margin: 0.5em 0;
}

.chat-item .bubble img {
	max-width: 100%;
	height: auto;
}

.bubble {
	padding: 7px 10px;
	color: #333;
	background: #fff;
	box-shadow: 0 3px 2px rgba(0, 0, 0, 0.1);
	position: relative;
	max-width: 420px;
	min-width: 80px;
	margin: 0 5px;
	border-radius: 4px;
}

.bubble::before {
	content: '';
	border-style: solid;
	border-width: 0 10px 10px 0;
	border-color: transparent #fff transparent transparent;
	position: absolute;
	top: 0;
	left: -10px;
}

.meta {
	font-size: 0.8rem;
	color: #999;
	margin-top: 3px;
}

#btns {
	position: absolute;
	z-index: 99;
	top: 20px;
	right: 30px;
	display: flex;
	padding: 5px 0;
	background: #fff;
	border-radius: 5px;
	box-shadow: 0 0 2px grey;
}

#btns .btn {
	background: #007cc5;
	color: #fff;
	cursor: pointer;
	border-radius: inherit;
	font-size: 12px;
	text-align: center;
	padding: 5px;
	margin: 0 5px;
}

#btns .btn:hover {
	background: #1c94da;
}
